<?php
/**
 * 发仔<i@fazi.me> 2018-07-24
 */
namespace app\open\validate;
use app\base\validate\BaseValidate;
class BeidouValidate extends BaseValidate
{
    protected $rule = [
        'company_id' => 'number',
        'car_number' => 'length:1,8',
        'is_beidou'  => 'number'
    ];

    protected $default = [
//        'is_beidou' => 1
    ];

    protected $change = [
        'car_number' => 'number|like'
    ];

    protected $scene = [
        'all' => ['company_id','car_number']
    ];
}